import { axiosPost, axiosGet } from '../utils/request';

// --------------------获取一级菜单 ==> 应用页面  -----------------------------------------------------

/*获取一级菜单 */
export function GetModuleTreeList(params) {
    return axiosPost('http://192.168.0.190:1024/dynamicform/getModuleTreeList', params)
}

/*获取表头的标识*/
// export function GetModuleTreeData(params) {
//     return axiosPost('http://192.168.0.190:1024/dynamicform/getDesignNew', params)
// }
/*获取列表表头 */
export function GetModuleTreeData(params) {
    return axiosGet(`/api/layout/list?tableId=${params}`)
}

/*获取枚举类型*/
export function GetEnumTypeValue(params) {
    return axiosPost('http://192.168.0.190:1024/dynamicform/basicdata/getEnumInfoByEnumTypeValue', params)
}

/*获取所有枚举类型*/
export function GetAllEnumTypeValue(params) {
    return axiosPost('http://192.168.0.190:1024/dynamicform/basicdata/getBosEnumNameValue', params)
}



/*获取列表头的数据*/
export function SubPageList(params) {
    return axiosPost('/api/receipt/sel', params)
}

/*获取过滤的字段*/
export function filterList(params) {
    return axiosGet(`/api/filter/field?tableId=${params}`)
}



/*获取列基础资料的数据*/
export function basicData(params) {
    return axiosGet(`/api/form/find/basic/${params}`)
}

/*删除*/
export function Del(params) {
    return axiosPost('/api/form/delete', params)
}
/*新增*/
export function Add(params) {
    console.log(params)
    return axiosPost('/api/receipt/insert', params)
}
/*修改*/
export function Upd(params) {
    return axiosPost('/api/receipt/upd', params)
}



